"""
今天是星期三，计算出100天后是星期几

"""
a = int(input("输入天数："))
if a % 7 == 3:
    print("第" + str(a) +"天" + "是周六")
elif a % 7 == 4:
    print("第" + str(a) +"天" + "是周日")
elif a % 7 == 5:
    print("第" + str(a) +"天" + "是周一")
elif a % 7 == 6:
    print("第" + str(a) +"天" + "是周二")
elif a % 7 == 0:
    print("第" + str(a) +"天" + "是周三")
elif a % 7 == 1:
    print("第" + str(a) +"天" + "是周四")
elif a % 7 == 2:
    print("第" + str(a) +"天" + "是周五")
